<?php
function admGetVATpayment(){
    if(file_exists('data/configfiles/vat.inc')) return file_get_contents('data/configfiles/vat.inc');
    if(file_exists('../data/configfiles/vat.inc')) return file_get_contents('../data/configfiles/vat.inc');
    if(file_exists('../../../data/configfiles/vat.inc')) return file_get_contents('../../../data/configfiles/vat.inc');
    if(file_exists('../../../../data/configfiles/vat.inc')) return file_get_contents('../../../../data/configfiles/vat.inc');
    return 'NO';
}
function admGetEnableProductCodeShowing(){
    if(file_exists('data/configfiles/productcode.inc')) return file_get_contents('data/configfiles/productcode.inc');
    if(file_exists('../data/configfiles/productcode.inc')) return file_get_contents('../data/configfiles/productcode.inc');
    if(file_exists('../../../data/configfiles/productcode.inc')) return file_get_contents('../../../data/configfiles/productcode.inc');
    if(file_exists('../../../../data/configfiles/productcode.inc')) return file_get_contents('../../../../data/configfiles/productcode.inc');
    return 'NO';
}
function admGetActualLngCode(){
    if(file_exists('plugins/i18n/i18nActive.inc')) return file_get_contents('plugins/i18n/i18nActive.inc');
    if(file_exists('../plugins/i18n/i18nActive.inc')) return file_get_contents('../plugins/i18n/i18nActive.inc');
    if(file_exists('../../../plugins/i18n/i18nActive.inc')) return file_get_contents('../../../plugins/i18n/i18nActive.inc');
    if(file_exists('../../../../plugins/i18n/i18nActive.inc')) return file_get_contents('../../../../plugins/i18n/i18nActive.inc');
    if(file_exists('../../../../../../../plugins/i18n/i18nActive.inc')) return file_get_contents('../../../../../../../plugins/i18n/i18nActive.inc');
    return 'NO';
}
define("BACKGROUND_TEMPLATE","#76A4FF");//A00000  FFFE63
define("BACKGROUND_COLOR_HEADER","#000000");
define("Background_Color","#DFDFDF");//#FFFFAF");
define("TR_BACKGOUND_COLOR_1","#D3D2D1");//#FFD988");
define("TR_BACKGOUND_COLOR_2","#AEACAB");//#FFFFC4");
define("TEXT_COLOR","BLACK");
define("TEXT_COLOR_ORDER","BROWN");
define("BUTTON_ON_OVER","#FF9A36");
define("BUTTON_ON_OUT","transparent");
define("BACKGROUND_IN_TABLE","#B2B3E5");//#7E7E7E");FF9A36 #C80000
define("BTN_IN_TABLE","#FFFFAF");
define("ITEMSONPAGE","15");
define("SHOWQVANTUMPAGE","20");

//zapnutie/vypnutie prepocitavania DPH
define("PAYER_VAT",admGetVATpayment());

//zapnutie/vypnutie zobrazovania kodu produktu
define('_PRODUCT_CODE_SHOWING_',admGetEnableProductCodeShowing()); //YES or NO

//definovanie max. velkosti obrazka
define("MAX_IMAGE_SIZE","600000");

//modul SHARED_PRODUCTS
define("SHARED_PRODUCTS_SESSION","testshop_shared_products");

//modul SHARED_PRODUCTS
define("PRODUCT_LINK_COOKIE","eshop_product_link");

define("LANGUAGE","language/".admGetActualLngCode()."_admin.php");
?>